package com.ossjk.oa.attendance.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.ossjk.core.base.entity.BaseEntity;

/**
 * <p>
 * 考勤
 * </p>
 *
 * @author chair
 * @since 2019-02-03
 */
public class Attendance extends BaseEntity<Attendance> {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId("id")
	private String id;
	/**
	 * 员工id
	 */
	@TableField("eid")
	private String eid;
	/**
	 * 部门id
	 */
	@TableField("did")
	private String did;
	/**
	 * 日期
	 */
	@TableField("date")
	@JSONField(format = "yyyy-MM-dd")
	private Date date;
	/**
	 * 年
	 */
	@TableField("year")
	private BigDecimal year;
	/**
	 * 月份
	 */
	@TableField("month")
	private BigDecimal month;
	/**
	 * 日
	 */
	@TableField("day")
	private BigDecimal day;
	/**
	 * 签入时间
	 */
	@TableField("ckin")
	@JSONField(format = "HH:mm:ss")
	private Date ckin;
	/**
	 * 签出时间
	 */
	@TableField("ckot")
	@JSONField(format = "HH:mm:ss")
	private Date ckot;
	/**
	 * 状态：1-正常、2-异常
	 */
	@TableField("stat")
	private BigDecimal stat;
	/**
	 * 备注
	 */
	@TableField("remarks")
	private String remarks;
	/**
	 * 审核人id
	 */
	@TableField("rwid")
	private String rwid;
	/**
	 * 审核时间
	 */
	@TableField("rwtm")
	@JSONField(format = "yyyy-MM-dd")
	private Date rwtm;
	/**
	 * 审核状态：1-待审核、2-通过、3-不通过
	 */
	@TableField("rwst")
	private BigDecimal rwst;
	/**
	 * 审核原因
	 */
	@TableField("rwrs")
	private String rwrs;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getEid() {
		return eid;
	}

	public void setEid(String eid) {
		this.eid = eid;
	}

	public String getDid() {
		return did;
	}

	public void setDid(String did) {
		this.did = did;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public BigDecimal getYear() {
		return year;
	}

	public void setYear(BigDecimal year) {
		this.year = year;
	}

	public BigDecimal getMonth() {
		return month;
	}

	public void setMonth(BigDecimal month) {
		this.month = month;
	}

	public BigDecimal getDay() {
		return day;
	}

	public void setDay(BigDecimal day) {
		this.day = day;
	}

	public Date getCkin() {
		return ckin;
	}

	public void setCkin(Date ckin) {
		this.ckin = ckin;
	}

	public Date getCkot() {
		return ckot;
	}

	public void setCkot(Date ckot) {
		this.ckot = ckot;
	}

	public BigDecimal getStat() {
		return stat;
	}

	public void setStat(BigDecimal stat) {
		this.stat = stat;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getRwid() {
		return rwid;
	}

	public void setRwid(String rwid) {
		this.rwid = rwid;
	}

	public Date getRwtm() {
		return rwtm;
	}

	public void setRwtm(Date rwtm) {
		this.rwtm = rwtm;
	}

	public BigDecimal getRwst() {
		return rwst;
	}

	public void setRwst(BigDecimal rwst) {
		this.rwst = rwst;
	}

	public String getRwrs() {
		return rwrs;
	}

	public void setRwrs(String rwrs) {
		this.rwrs = rwrs;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Attendance{" + ", id=" + id + ", eid=" + eid + ", did=" + did + ", date=" + date + ", year=" + year + ", month=" + month + ", day=" + day + ", ckin=" + ckin + ", ckot=" + ckot + ", stat=" + stat + ", remarks=" + remarks + ", rwid=" + rwid + ", rwtm=" + rwtm + ", rwst=" + rwst + ", rwrs=" + rwrs + "}";
	}
}
